//package com.fecean.aabbc.netty.server.prod1;
//
//import io.netty.channel.ChannelHandler;
//import io.netty.channel.ChannelInitializer;
//import io.netty.channel.socket.SocketChannel;
//import io.netty.handler.codec.string.StringDecoder;
//import io.netty.handler.codec.string.StringEncoder;
//import org.springframework.stereotype.Component;
//
//import javax.annotation.Resource;
//
///**
// * NettyServerChannelInitializer
// *
// * @author: chenfenghai
// * @version: 1.0
// * @date: 2020-03-05 15:53
// * @blame Team
// */
//@Component
//@ChannelHandler.Sharable
//public class NettyServerChannelInitializer extends ChannelInitializer<SocketChannel> {
//
//    @Resource
//    NettyServerRegisterHandler nettyServerRegisterHandler;
//
//    @Resource
//    NettyServerHeartBeatHandler nettyServerHeartBeatHandler;
//
//    @Resource
//    NettyServerBusinessHandler nettyServerBusinessHandler;
//
//    @Override
//    protected void initChannel(SocketChannel ch) {
//        ch.pipeline().addLast("decoder", new StringDecoder());
//        ch.pipeline().addLast("encoder", new StringEncoder());
//        ch.pipeline().addLast(nettyServerRegisterHandler);
//        ch.pipeline().addLast(nettyServerHeartBeatHandler);
//        ch.pipeline().addLast(nettyServerBusinessHandler);
//    }
//}
